package com.bdcom.model;

import java.awt.Point;

public class Line {
	private Point p1;
	private Point p2;
	
	public Line(){}
	
	public Line(int x1,int y1,int x2,int y2){
		p1 = new Point(x1,y1);
		p2 = new Point(x2,y2);
	}

	public int getX1(){
		return p1.x;
	}
	
	public int getX2(){
		return p2.x;
	}
	
	public int getY1(){
		return p1.y;
	}
	
	public int getY2(){
		return p2.y;
	}
	
	public Point getP1() {
		return p1;
	}

	public void setP1(Point p1) {
		this.p1 = p1;
	}

	public Point getP2() {
		return p2;
	}

	public void setP2(Point p2) {
		this.p2 = p2;
	}
	
}
